projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bccef4e
)
recent-manager: Fix the error domain and message on move_item()
author
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 10 Apr 2016 17:39:33 +0000
(18:39 +0100)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Sun, 10 Apr 2016 17:39:33 +0000
(18:39 +0100)
Using NOT_FOUND when moving is wrong and unhelpful.
https://bugzilla.gnome.org/show_bug.cgi?id=620065
gtk/gtkrecentmanager.c
patch
|
blob
|
history
diff --git
a/gtk/gtkrecentmanager.c
b/gtk/gtkrecentmanager.c
index 5304b843ac01e05f076cf7a8270b4df4b439c444..116e34dff780e00fdae93bedb10e0fe95e864a2f 100644
(file)
--- a/
gtk/gtkrecentmanager.c
+++ b/
gtk/gtkrecentmanager.c
@@
-1272,9
+1272,9
@@
gtk_recent_manager_move_item (GtkRecentManager *recent_manager,
g_error_free (move_error);
g_set_error (error, GTK_RECENT_MANAGER_ERROR,
- GTK_RECENT_MANAGER_ERROR_
NOT_FOUND
,
- _("Unable to
find an item with URI
'%s'"),
- uri);
+ GTK_RECENT_MANAGER_ERROR_
UNKNOWN
,
+ _("Unable to
move the item with URI '%s' to
'%s'"),
+ uri
, new_uri
);
return FALSE;
}